package com.example.demo.controller;


public class StudentHomeworkController {
    @Autowired
    private final StudentHomeworkService studenthomeworkService;
    @Autowired
    final HomeworkMapper homeworkMapper;

public StudentHomeworkController(StudentHomeworkService studenthomeworkService, HomeworkMapper homeworkMapper, StudentHomeworkMapper studenthomeworkMapper) {
        this.studenthomeworkService = studenthomeworkService;
        this.homeworkMapper = homeworkMapper;
}
@RequestMapping(value = "allStudentHomework", method = RequestMethod.GET)
    public ModelAndView allStudentHomework(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
     List<StudentHomework> list = studenthomeworkService.selectAll();
        ModelAndView mav = new ModelAndView("allStudentHomework.jsp");
    }